package com.hnichr.crm.autoconfigure.oauth;

import com.hnichr.crm.common.Constant;
import com.hnichr.crm.common.vo.ModuleVO;
import com.hnichr.crm.oauth.OauthConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@ConditionalOnClass(OauthConfiguration.class)
@Import(OauthConfiguration.class)
@Slf4j
public class OauthAutoConfiguration {

	public OauthAutoConfiguration() {
		log.info("[AutoConfiguration==>]:Oauth Module Loading");

		Constant.addModule(new ModuleVO("Oauth","统一鉴权模块"));
	}
}
